home *** CD-ROM | disk | FTP | other *** search
- Path: southwind.net!usenet
- From: kurtg@southwind.net (Kurt Graber)
- Newsgroups: comp.lang.c++
- Subject: Re: for loop question
- Date: 31 Jan 1996 04:25:42 GMT
- Organization: SouthWind Internet Access, Inc.
- Message-ID: <4emr06$470@opal.southwind.net>
- References: <4emqf8$470@opal.southwind.net>
- NNTP-Posting-Host: onyx.southwind.net
- X-Newsreader: WinVN 0.91.6
-
- In article <4emqf8$470@opal.southwind.net>, kurtg@southwind.net (Kurt
- Graber) says:
- >
- >I am currently learning c++ so maybe you gurus can answer this
- >also I am using borland turbo c++ 3.0
- >I can't get the following code to give me any output.
- >
- >#include <iostream.h>
- >
- >void main (void)
- >{
- > int a;
- > for(a = 0;a == 10;a++)
- > {
- > cout << "anything";
- > }
- >}
- >
- >///If I change the loop to for(a=0;a<=10;a++)
- > the program will work fine.
- > why?????????
- > thanks
- > kurt
- >
- I know why stupid me.........KURT
-